package parser;

import parser.Set;
import java.util.Vector;

public class Universe {
	private String name;	/* <universe name> */
	private Vector sets;	/* <set list> */
	
	public Universe(String name) {
		this.name = name;
		sets = new Vector();
	}
	
	public void addSet(String setname)
	{
		sets.add(new Set(setname));
	}
	
	public void addSetValues(double[] setvalues)
	{
		((Set)sets.lastElement()).addSetValues(setvalues);
	}
	
	public String getName()
	{
		return name;
	}
	
	public Set getUniverse(int index)
	{
		return (Set)sets.elementAt(index); 
	}

	public Vector getUniverses()
	{
		return sets;
	}
}
